package com.jsoft.dao.impl;

import com.jsoft.dao.UserDao;
import com.jsoft.entity.User;
import com.jsoft.util.DAO;

/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/21
 */
public class UserDaoImpl extends DAO<User> implements UserDao {
    @Override
    public User getUserByAccount(String account) throws Exception {
        String sql="SELECT id,`name`,enterprise_id enterpriseId,account,`password`,salt FROM `user` where account = ? ";
        return get(sql,account);
    }
}
